home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-07 / mail15.zip / AUTO2.ASP < prev    next >
Text File  |  1992-03-01  |  745b  |  23 lines

  1. ;
  2. ; Script to automatically execute the mailrm e-mail forwarding program
  3. ; You must make sure that your Procomm options are set so that the
  4. ; host mode will HANGUP when a remote user logs out.  If this option
  5. ; is set to re-cycle then host mode will never return control to the 
  6. ; script command and mailroom.bat will never be invoked.
  7. ;
  8.  
  9. ;
  10. ; You can change the name of this batchfile to anything convenient
  11. string batchname = "mailroom.bat"
  12.  
  13. proc main                    ; script main procedure
  14. clear
  15. while (forever)                ; just do host and run mailrm after each user
  16.  host                        ; execute the host command
  17.  if success                    ; if user didn't abort...
  18.   dos batchname                ; execute the DOS batch file to run mailroom
  19.  endif
  20. endwhile
  21. endproc
  22.